<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$smarty.const.Site_Name}</title>
<link href="css/public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="Js/menu.js"></script>
<script type="text/javascript" src="Js/exec.js"></script>
</head>

<body>
{include file="header.html"}
<div class="center">
	<div class="left">{include file="menu.html"}</div>
	<div class="right">
		<div class="Nav">
			<ul>
				{if $BTP[$get.open].add}<li><a href="{write_url url=$thisurl action='add' DEL='ALL'}" {CLASS_COLOR add=$get.action CLASS='this'}>添加代理</a></li>{/if}
				{if $BTP[$get.open].show}<li><a href="{write_url url=$thisurl action='show' DEL='ALL'}" {CLASS_COLOR show=$get.action CLASS='this'}>代理管理</a></li>{/if}
			</ul>
			<span class="clear"></span>
		</div>
		<div class="append">
			<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
				<tr class="NO_TAB_SHOW"><td colspan="9" class="Need padding">附件</td></tr>
				<tr class="NO_TAB_SHOW">
					<td align="right">代理账号</td>
					<td>{$proxy.account}</td>
					<td align="right">真实姓名</td>
					<td>{$proxy.name}</td>
					<td align="right">昵称</td>
					<td>{$proxy.nickname}</td>
					<td align="right">编号</td>
					<td>{$proxy.number}</td>
					<td width="20%">
						<div class="Nav" style="margin:0; padding:0">
							<ul>
								{if $BTP[$get.open].proxy_appx_add}<li><a href="{write_url url=$thisurl action='proxy_appx_add' DEL='appxid'}" {CLASS_COLOR proxy_appx_add=$get.action CLASS='this'}>添加附件</a></li>{/if}
								{if $BTP[$get.open].proxy_appx_show}<li><a href="{write_url url=$thisurl action='proxy_appx_show' DEL='appxid'}" {CLASS_COLOR proxy_appx_show=$get.action CLASS='this'}>附件管理</a></li>{/if}
							</ul>
							<span class="clear"></span>
						</div>
					</td>
				</tr>
				<tr class='NO_TAB_SHOW'>
					<td colspan="9">
						<form action="{write_url url=$thisurl action='proxy_appx_del'}" method="post">
							<table width="100%" border="0" cellspacing="1" cellpadding="0">
								<tr>
									<th width="5%">选择</th>
									<th>附件类型</th>
									<th>名称</th>
									<th>简单介绍</th>
									<th>时间</th>
									<th width="5%">文件</th>
									<th width="5%">编辑</th>
									<th width="5%">删除</th>
								</tr>
								{foreach item=pso from=$list_text}
								<tr>
									<td align="center">{if $BTP[$get.open].proxy_appx_del}<input type="checkbox" name="appxid[]" value="{$pso.id}" />{/if}</td>
									<td>{$Appendix[$pso.type]}</td>
									<td>{$pso.name}</td>
									<td>{$pso.into}</td>
									<td align="center">{$pso.time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
									<td class="action" align="center">{if $BTP[$get.open].proxy_appx_down}<a href="{write_url url=$thisurl action='proxy_appx_down' appxid=$pso.id}" class="act_4_7" title="附件"></a>{/if}</td>
									<td class="action" align="center">{if $BTP[$get.open].proxy_appx_edit}<a href="{write_url url=$thisurl action='proxy_appx_edit' appxid=$pso.id}" class="act_5_8" title="编辑"></a>{/if}</td>
									<td class="action" align="center">{if $BTP[$get.open].proxy_appx_del}<a href="{write_url url=$thisurl action='proxy_appx_del' appxid=$pso.id}" class="act_1_5" title="删除"></a>{/if}</td>
								</tr>
								{foreachelse}
								<tr><td colspan="9" class="else">当前代理没有附件 , <a href="{write_url url=$thisurl action='proxy_appx_add'}">点击为该代理添加附件</a></td></tr>
								{/foreach}
							</table>
							<div class="select" style="padding:0;border:none; margin:1em auto 0 auto">
								选择：
								<input value="全部选择" type="button" onclick="select_all('appxid[]');" />
								<input value="全部取消" type="button" onclick="select_out('appxid[]');" />
								<input value="反向选择" type="button" onclick="select_agt('appxid[]');" />
								<input value="删除选择" type="button" onclick="select_del('appxid[]' , this);" />
							</div>
						</form>
						{if $list_page.Record > 0}
						<div class="page">
							每页
							<select onchange="page_Local(this,0 , '{write_url url=$thisurl DEL='PNS'}')">
								<option value="PNS=10" {selected val=$get.PNS str='10'}>10</option>
								<option value="PNS=25" {selected val=$get.PNS str='25'}>25</option>
								<option value="PNS=50" {selected val=$get.PNS str='50'}>50</option>
								<option value="PNS=100" {selected val=$get.PNS str='100'}>100</option>
							</select>
							条数据
							当前第{$list_page.NowPage}页 / 共{$list_page.count}页
							{if $list_page.NowPage > 1}<a href="{write_url url=$thisurl page='1'}">首页</a>{else}首页{/if}
							{if $list_page.NowPage > 1}<a href="{write_url url=$thisurl page=$list_page.up}">上一页</a>{else}上一页{/if}
							{if $list_page.NowPage < $list_page.count}<a href="{write_url url=$thisurl page=$list_page.down}">下一页</a>{else}下一页{/if}
							{if $list_page.NowPage < $list_page.count}<a href="{write_url url=$thisurl page=$list_page.count}">尾页</a>{else}尾页{/if}
							至 <input type="text" style="height:auto;line-height:inherit" value="{$list_page.NowPage}" onkeydown="go_page(event , this , '{$thisurl}')" /> 页
							排序:
							<select onchange="page_Local(this,0 , '{write_url url=$thisurl DEL='ORDER'}')">
								<option value="ORDER=time_UP" {selected val=$get.ORDER str='time_UP'}>按 时间 (↑) 排序</option>
								<option value="ORDER=time_Dn" {selected val=$get.ORDER str='time_Dn'}>按 时间 (↓) 排序</option>
								<option value="ORDER=type_UP" {selected val=$get.ORDER str='type_UP'}>按 附件类型 (↑) 排序</option>
								<option value="ORDER=type_Dn" {selected val=$get.ORDER str='type_Dn'}>按 附件类型 (↓) 排序</option>
							</select>
						</div>
						{/if}
					</td>
				</tr>
			</table>
		</div>	
	</div>
	<b class="clear"></b>
</div>
</body>
</html>